<template>
  <div>{{ person.name }} - {{ person.age }}</div>
</template>

<script>
  export default {
    name: 'He',
    data() {
      return {
        person: {},
      };
    },
    mounted() {
      this.$bus.$on('hehe', (data) => {
        console.log('Hehe', data);
        this.person = data[0] || {};
      });
    },

    beforeDestroy() {
      this.$bus.$off('hehe');
    },
  };
</script>

<style></style>
